<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <title>My JSP 'kaptcha.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.0.min.js"></script>	 
<script type="text/javascript">      
  
	
	$(function(){
		 $('#kaptchaImage').click(function () {//生成验证码  
		  	$(this).hide().attr('src', '<%=basePath%>jcaptcha.do?' + Math.floor(Math.random()*100) ).fadeIn(); 
		 }); 
	});   
			        
</script> 
  </head>
  
  <body>
  <input type="text" name="captcha" />
	<img src="<%=basePath %>jcaptcha.do" width="68" height="23" id="kaptchaImage" style="margin-bottom: -6px" />
  </body>
</html>
